package com.ruoyi.project.system.uflo.handler;

import java.util.List;

import org.springframework.stereotype.Component;

import com.bstek.uflo.env.Context;
import com.bstek.uflo.model.ProcessInstance;
import com.bstek.uflo.process.flow.SequenceFlowImpl;
import com.bstek.uflo.process.handler.NodeEventHandler;
import com.bstek.uflo.process.node.Node;
import com.bstek.uflo.service.TaskService;

/**
 * 首节点事件
 * @author xianz
 *
 */
@Component
public class FirstNodeEventHandler implements NodeEventHandler {

	@Override
	public void enter(Node node, ProcessInstance processInstance, Context context) {
		List<SequenceFlowImpl> sequenceFlows = node.getSequenceFlows();
		System.out.println("进入首节点");
	}

	@Override
	public void leave(Node node, ProcessInstance processInstance, Context context) {
		
		TaskService taskService = context.getTaskService();
		
		System.out.println("离开首节点");

	}

}
